<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    template="/templates/default.xhtml">

    <ui:define name="content">
		<h:dataTable value="#{processController.getProcessDefinitionList()}" var="v_process">
			<h:column>
				<f:facet name="header">Key</f:facet>
				#{v_process.key}
			</h:column>
			<h:column>
				<f:facet name="header">Name</f:facet>
				#{v_process.name}
			</h:column>
			<h:column>
				<f:facet name="header">Version</f:facet>
				#{v_process.version}
			</h:column>
			<h:column>
				<f:facet name="header">Action</f:facet>
				        
				<h:outputLink value="#{formService.getStartFormData(v_process.id).formKey}">
					Start
					<f:param name="processDefinitionKey" value="#{v_process.key}"></f:param>
				</h:outputLink>
		        <h:graphicImage value="/diagram?key=#{v_process.key}" />
			</h:column>
		</h:dataTable>
    </ui:define>
</ui:composition>
